<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jstl/core">
<ui:component>
	<h:dataTable value="#{searchresultsview.resources}"
		rowClasses="row1, row2"
		columnClasses="name, path, server,fileSize,fileChangeDate" var="row">
		<h:column>
			<f:facet name="header">
				<h:panelGroup>
					<h:outputLink
						rendered="#{searchresultsview.orderDirection eq 'ASC'}">
						<h:outputText value="Name"></h:outputText>
						<f:param name="orderBy" value="name"></f:param>
						<f:param name="orderDirection" value="DESC"></f:param>
						<f:param name="includeWords"
							value="#{searchresultsview.includeWords}" />
						<f:param name="excludeWords"
							value="#{searchresultsview.excludeWords}" />
						<f:param name="sizeMaxFilter" value="#{searchresultsview.sizeMax}"></f:param>
						<f:param name="sizeMinFilter" value="#{searchresultsview.sizeMin}"></f:param>
					</h:outputLink>
					<h:outputLink
						rendered="#{searchresultsview.orderDirection ne 'ASC'}">
						<h:outputText value="Name"></h:outputText>
						<f:param name="orderBy" value="name"></f:param>
						<f:param name="orderDirection" value="ASC"></f:param>
						<f:param name="includeWords"
							value="#{searchresultsview.includeWords}" />
						<f:param name="excludeWords"
							value="#{searchresultsview.excludeWords}" />
						<f:param name="sizeMaxFilter" value="#{searchresultsview.sizeMax}"></f:param>
						<f:param name="sizeMinFilter" value="#{searchresultsview.sizeMin}"></f:param>
					</h:outputLink>
				</h:panelGroup>
			</f:facet>
			<h:outputText value="#{row.name}" />
		</h:column>
		<h:column>
			<f:facet name="header">
				<h:panelGroup>
					<h:outputLink
						rendered="#{searchresultsview.orderDirection eq 'ASC'}">
						<h:outputText value="Path" />
						<f:param name="orderBy" value="path"></f:param>
						<f:param name="orderDirection" value="DESC"></f:param>
						<f:param name="includeWords"
							value="#{searchresultsview.includeWords}" />
						<f:param name="excludeWords"
							value="#{searchresultsview.excludeWords}" />
						<f:param name="sizeMaxFilter" value="#{searchresultsview.sizeMax}"></f:param>
						<f:param name="sizeMinFilter" value="#{searchresultsview.sizeMin}"></f:param>
					</h:outputLink>
					<h:outputLink
						rendered="#{searchresultsview.orderDirection ne 'ASC'}">
						<h:outputText value="Path" />
						<f:param name="orderBy" value="path"></f:param>
						<f:param name="orderDirection" value="ASC"></f:param>
						<f:param name="includeWords"
							value="#{searchresultsview.includeWords}" />
						<f:param name="excludeWords"
							value="#{searchresultsview.excludeWords}" />
						<f:param name="sizeMaxFilter" value="#{searchresultsview.sizeMax}"></f:param>
						<f:param name="sizeMinFilter" value="#{searchresultsview.sizeMin}"></f:param>
					</h:outputLink>
				</h:panelGroup>
			</f:facet>
			<h:outputLink charset="UTF-8"
				value="#{facesContext.externalContext.requestContextPath}/downloadServlet">
				<h:outputText value="#{row.path}" />
				<f:param name="downloadPath" value="#{row.path}"></f:param>
			</h:outputLink>
		</h:column>
		<h:column>
			<f:facet name="header">
				<h:panelGroup>
					<h:outputLink
						rendered="#{searchresultsview.orderDirection eq 'ASC'}">
						<h:outputText value="Server" />
						<f:param name="orderBy" value="server"></f:param>
						<f:param name="orderDirection" value="DESC"></f:param>
						<f:param name="includeWords"
							value="#{searchresultsview.includeWords}" />
						<f:param name="excludeWords"
							value="#{searchresultsview.excludeWords}" />
						<f:param name="sizeMaxFilter" value="#{searchresultsview.sizeMax}"></f:param>
						<f:param name="sizeMinFilter" value="#{searchresultsview.sizeMin}"></f:param>
					</h:outputLink>
					<h:outputLink
						rendered="#{searchresultsview.orderDirection ne 'ASC'}">
						<h:outputText value="Server" />
						<f:param name="orderBy" value="server"></f:param>
						<f:param name="orderDirection" value="ASC"></f:param>
						<f:param name="includeWords"
							value="#{searchresultsview.includeWords}" />
						<f:param name="excludeWords"
							value="#{searchresultsview.excludeWords}" />
						<f:param name="sizeMaxFilter" value="#{searchresultsview.sizeMax}"></f:param>
						<f:param name="sizeMinFilter" value="#{searchresultsview.sizeMin}"></f:param>
					</h:outputLink>
				</h:panelGroup>
			</f:facet>
			<h:outputText value="#{row.server}" />
		</h:column>
		<h:column>
			<f:facet name="header">
				<h:panelGroup>
					<h:outputLink
						rendered="#{searchresultsview.orderDirection eq 'ASC'}">
						<h:outputText value="File Size" />
						<f:param name="orderBy" value="fileSize"></f:param>
						<f:param name="orderDirection" value="DESC"></f:param>
						<f:param name="includeWords"
							value="#{searchresultsview.includeWords}" />
						<f:param name="excludeWords"
							value="#{searchresultsview.excludeWords}" />
						<f:param name="sizeMaxFilter" value="#{searchresultsview.sizeMax}"></f:param>
						<f:param name="sizeMinFilter" value="#{searchresultsview.sizeMin}"></f:param>
					</h:outputLink>
					<h:outputLink
						rendered="#{searchresultsview.orderDirection ne 'ASC'}">
						<h:outputText value="File Size" />
						<f:param name="orderBy" value="fileSize"></f:param>
						<f:param name="orderDirection" value="ASC"></f:param>
						<f:param name="includeWords"
							value="#{searchresultsview.includeWords}" />
						<f:param name="excludeWords"
							value="#{searchresultsview.excludeWords}" />
						<f:param name="sizeMaxFilter" value="#{searchresultsview.sizeMax}"></f:param>
						<f:param name="sizeMinFilter" value="#{searchresultsview.sizeMin}"></f:param>
					</h:outputLink>
				</h:panelGroup>
			</f:facet>
			<h:outputText value="#{row.fileSize}" />
		</h:column>
		<h:column>
			<f:facet name="header">
				<h:panelGroup>
					<h:outputLink
						rendered="#{searchresultsview.orderDirection eq 'ASC'}">
						<h:outputText value="File Change Date" />
						<f:param name="orderBy" value="fileChangeDate"></f:param>
						<f:param name="orderDirection" value="DESC"></f:param>
						<f:param name="includeWords"
							value="#{searchresultsview.includeWords}" />
						<f:param name="excludeWords"
							value="#{searchresultsview.excludeWords}" />
						<f:param name="sizeMaxFilter" value="#{searchresultsview.sizeMax}"></f:param>
						<f:param name="sizeMinFilter" value="#{searchresultsview.sizeMin}"></f:param>
					</h:outputLink>
					<h:outputLink
						rendered="#{searchresultsview.orderDirection ne 'ASC'}">
						<h:outputText value="File Change Date" />
						<f:param name="orderBy" value="fileChangeDate"></f:param>
						<f:param name="orderDirection" value="ASC"></f:param>
						<f:param name="includeWords"
							value="#{searchresultsview.includeWords}" />
						<f:param name="excludeWords"
							value="#{searchresultsview.excludeWords}" />
						<f:param name="sizeMaxFilter" value="#{searchresultsview.sizeMax}"></f:param>
						<f:param name="sizeMinFilter" value="#{searchresultsview.sizeMin}"></f:param>
					</h:outputLink>
				</h:panelGroup>
			</f:facet>
			<h:outputText value="#{row.fileChangeDate}" />
		</h:column>
	</h:dataTable>
</ui:component>
</html>